﻿namespace CSharpBasic;

public class ValueTupleOper
{
    public void TupleTest()
    {
        // 是结构体，值类型
        (int, string) _valueTuple = (1, "121");
        Console.WriteLine("_valueTuple.Item1: " + _valueTuple.Item1);
        Console.WriteLine("_valueTuple.Item2: " + _valueTuple.Item2);
        (int, string) _valueTuple_2 = (1, "121");
        bool isSame = _valueTuple_2 == _valueTuple;
        (int, string) _valueTuple_3 = _valueTuple_2;
        _valueTuple_3.ToString();
        
    }
}